import service from '@/utils/request'

// @Tags MasterBomSapLog
// @Summary 创建sap日志
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.MasterBomSapLog true "创建sap日志"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /masterBomSapLog/createMasterBomSapLog [post]
export const createMasterBomSapLog = (data) => {
  return service({
    url: '/masterBomSapLog/createMasterBomSapLog',
    method: 'post',
    data
  })
}

// @Tags MasterBomSapLog
// @Summary 删除sap日志
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.MasterBomSapLog true "删除sap日志"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /masterBomSapLog/deleteMasterBomSapLog [delete]
export const deleteMasterBomSapLog = (params) => {
  return service({
    url: '/masterBomSapLog/deleteMasterBomSapLog',
    method: 'delete',
    params
  })
}

// @Tags MasterBomSapLog
// @Summary 批量删除sap日志
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除sap日志"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /masterBomSapLog/deleteMasterBomSapLog [delete]
export const deleteMasterBomSapLogByIds = (params) => {
  return service({
    url: '/masterBomSapLog/deleteMasterBomSapLogByIds',
    method: 'delete',
    params
  })
}

// @Tags MasterBomSapLog
// @Summary 更新sap日志
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.MasterBomSapLog true "更新sap日志"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /masterBomSapLog/updateMasterBomSapLog [put]
export const updateMasterBomSapLog = (data) => {
  return service({
    url: '/masterBomSapLog/updateMasterBomSapLog',
    method: 'put',
    data
  })
}

// @Tags MasterBomSapLog
// @Summary 用id查询sap日志
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.MasterBomSapLog true "用id查询sap日志"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /masterBomSapLog/findMasterBomSapLog [get]
export const findMasterBomSapLog = (params) => {
  return service({
    url: '/masterBomSapLog/findMasterBomSapLog',
    method: 'get',
    params
  })
}

// @Tags MasterBomSapLog
// @Summary 分页获取sap日志列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取sap日志列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /masterBomSapLog/getMasterBomSapLogList [get]
export const getMasterBomSapLogList = (params) => {
  return service({
    url: '/masterBomSapLog/getMasterBomSapLogList',
    method: 'get',
    params
  })
}
